/**
 * 小程序配置文件
 */
var server = require("./server.js");
var project = require("./project.js")

// 此处主机域名修改成腾讯云解决方案分配的域名
var host = server.host;

var url = `https://${host}/wxmaAuth`

var config = {
    // 小程序名称
    appname: 'dati',
    
    appid: `${project.appid}`,
    // 下面的地址配合云端 Demo 工作
    service: {
        host,
        //获取信息
        obtainSelfInfo: `${url}/sensitive/user/obtainSelfInfo`,
        //绑定工号信息
        bingJobNum: `https://${host}/wxma/bingJobNum`,
        //获取试卷信息
        obtainPapers: `${url}/sensitive/exam/obtainPapers`,
        //获取最后一次测试成成绩
        obtainResultLast: `${url}/sensitive/exam/obtainResultLast`,
        //获取试卷题目
        obtainPaberQusetions: `${url}/sensitive/exam/obtainPaberQusetions`,
        //新建测试成绩
        createResult: `${url}/sensitive/exam/createResult`,
        obtainPapersPersonTrips: `${url}/sensitive/exam/obtainPapersPersonTrips`,
        //获取部门榜的范围
        obtainMatchRangeDepartments: `${url}/sensitive/exam/obtainMatchRangeDepartments`,
        // 个人部门榜
        obtainMatchPersonDepartmentFocus: `${url}/sensitive/exam/obtainMatchPersonDepartmentFocus`,
        // 个人全行榜
        obtainMatchPersonBankFocus: `${url}/sensitive/exam/obtainMatchPersonBankFocus`,
        //机构榜
        obtainMatchOrgFocus: `${url}/sensitive/exam/obtainMatchOrgFocus`,
        //获取touck
        obtainMatchToken: `${url}/sensitive/exam/obtainMatchToken`,
        // 获取排行
        obtainMatchPersonRanking: `${url}/insensitive/exam/obtainMatchPersonRanking`,
        //获取机构详情
        obtainMatchOrgRanking: `${url}/sensitive/exam/obtainMatchOrgRanking`,
        // 获取段位个人部门榜
        obtainQualifyingPersonDepartmentFocus: `${url}/sensitive/exam/obtainQualifyingPersonDepartmentFocus`,
        // 获取段位个人全行榜
        obtainQualifingPersonBankFocus: `${url}/sensitive/exam/obtainQualifingPersonBankFocus`,
        // 获取答题后个人等级信息
        obtainQualifyingUpgradeInfo: `${url}/sensitive/exam/obtainQualifyingUpgradeInfo`,
        // 获取个人段位等级信息
        obtainQualifyingPersonRanking: `${url}/sensitive/exam/obtainQualifyingPersonRanking`,
        // 获取时间提醒列表
        obtainPaperNotices: `${url}/sensitive/exam/obtainPaperNotices`,
        
        // websoket
        match: `wss://${host}/websocket/match`,
        // 登录地址，用于建立会话
        loginUrl: `https://${host}/wxma/login`,
        
    }
};

module.exports = config;